#!/bin/bash
gnash -t 2 -r0 -pv http://www.nhk.or.jp/gogaku/common/swf/streaming.swf | ruby -ne'if(/([0-9A-Za-z]+)\/listdataflv.xml/) then system("echo #{$1} > /home/sino/src/nhk-rtmp-capture/MAGIC-DIGITS.TXT && svn commit -m \"\" /home/sino/src/nhk-rtmp-capture/MAGIC-DIGITS.TXT") ; end' 
